<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>对象</title>
</head>
<body>
	<script>
		var animal = {
			weight : "30kg",
            age : "5岁",
            variety : "雪纳瑞",
            fangfa : function (){
            	console.log('吃、睡、玩')
            }
		}
		console.log(animal.variety);//属性值获取
		 animal.fangfa();//属性方法调用
		
	</script>
</body>
</html>